<?php require VIEW_PATH."/header.php";?>
<body>

<div class="hd-menu-list">
    <ul>
        <li class="active"><a href="#">商品类型属性</a></li>
        <li><a href="<?php echo U('add',array('id'=>$_GET['id']))?>">添加属性</a></li>
    </ul>
</div>

<table class="hd-table hd-table-list">
    <thead>
    <tr>
        <td>attr_id</td>
        <td>属性名称</td>
        <td>类型</td>
        <td>选项值</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>
    <?php foreach ($data as $v){?>
    <tr>
        <td><?php echo $v['attr_id']?></td>
        <td><?php echo $v['attr_name']?></td>
        <td><?php echo $v['_attr_type']?></td>
        <td><?php echo $v['attr_value']?></td>
        <td class="hd-w100">
            <a href="<?php echo U('edit',array('id'=>$v['attr_id']))?>">修改</a> |
            <a href="#">删除</a>
        </td>
    </tr>
    <?php }?>
    </tbody>
</table>

</body>
</html>